package com.skytech.tax.customsdatawarehouse.singlewindow.taxhandle.domain.entity;

import com.alibaba.fastjson.JSONObject;
import org.joda.time.DateTime;

public class GuaranteeLetterAmount {

    private String swAmountId;       //额度变动ID
    private String bkLetterCode;     //保函/保险编号
    private String cusLetterCode;    //海关保函/保险编号
    private String data;             //保函数据
    private String limitChangeTimeStr; //额度变动时间
    private String socialCreditCode; //企业社会信用代码
    private String storageTime;      //入库时间

    public GuaranteeLetterAmount() {
    }

    public GuaranteeLetterAmount(String socialCreditCode, JSONObject data) {
        this.socialCreditCode = socialCreditCode;
        this.data = data.toJSONString();
        this.swAmountId = data.getString("swAmountId");
        this.bkLetterCode = data.getString("bkLetterCode");
        this.cusLetterCode = data.getString("cusLetterCode");
        this.limitChangeTimeStr = data.getString("limitChangeTimeStr");
        this.storageTime = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }

    public String getSwAmountId() {
        return swAmountId;
    }

    public void setSwAmountId(String swAmountId) {
        this.swAmountId = swAmountId;
    }

    public String getBkLetterCode() {
        return bkLetterCode;
    }

    public void setBkLetterCode(String bkLetterCode) {
        this.bkLetterCode = bkLetterCode;
    }

    public String getCusLetterCode() {
        return cusLetterCode;
    }

    public void setCusLetterCode(String cusLetterCode) {
        this.cusLetterCode = cusLetterCode;
    }

    public String getLimitChangeTimeStr() {
        return limitChangeTimeStr;
    }

    public void setLimitChangeTimeStr(String limitChangeTimeStr) {
        this.limitChangeTimeStr = limitChangeTimeStr;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }

    public String getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(String storageTime) {
        this.storageTime = storageTime;
    }
}
